package com.health.mapp.enums;

/**
 * Created by helili on 2017/2/20.
 */
public enum  CollectionTypeEnum {

    SC(0, "收藏"), QXSC(1, "取消收藏");
    private int value;
    private String name;

    private CollectionTypeEnum(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public int getValue() {
        return value;
    }


    public String getName() {
        return name;
    }


    public static CollectionTypeEnum valueOf(Integer value) {
        if (null == value) {
            return null;
        }
        for (CollectionTypeEnum type : values()) {
            if (type.value == value) {
                return type;
            }
        }
        return null;
    }
}
